package cn.i7baozh.alibaba.sentinel.remote;

import cn.i7baozh.alibaba.sentinel.remote.fallback.RemoteServiceFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * 需要配合 feign.sentinel.enabled=true 使用，否则无效
 * @author zhangbaoqi532
 * @date 2024/12/30
 */
@FeignClient(value = "alibaba-provider", fallback = RemoteServiceFallback.class)
public interface RemoteService {
    @GetMapping("alibaba/provider/get")
    String getMsg();
}
